import java.time.LocalDateTime;

// 电影票类
class Ticket {
    private String ticketId;
    private String sessionId;
    private String seatId;
    private double price;
    private LocalDateTime createTime;
    private boolean isRefunded;

    public Ticket(String ticketId, String sessionId, String seatId, double price) {
        this.ticketId = ticketId;
        this.sessionId = sessionId;
        this.seatId = seatId;
        this.price = price;
        this.createTime = LocalDateTime.now();
        this.isRefunded = false;
    }

    // Getters and Setters
    public String getTicketId() {
        return ticketId;
    }

    public String getSessionId() {
        return sessionId;
    }

    public String getSeatId() {
        return seatId;
    }

    public double getPrice() {
        return price;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public boolean isRefunded() {
        return isRefunded;
    }

    public void setRefunded(boolean refunded) {
        isRefunded = refunded;
    }
}
